<template>
  <van-row class="cart-tabbar">
    <van-col  class="service" span="4">
        <i class="kefu"></i>
    </van-col>
    <van-col class="buy-i" span="10">
      <span>立即购买</span>
    </van-col>
    <van-col class="add-cart" span="10" @click="addCart">
      <span>加入购物车</span>
    </van-col>
  </van-row>
</template>
<script>
export default {
  name: "DetailTabbar",
  methods: {
      addCart() {
        this.$emit('addCart')
      }
  }
};
</script>
<style scoped>
.cart-tabbar {
  position: fixed;
  align-items: center;
  bottom: 0;
  width: 100%;
  height: 52px;
  z-index: 5;
  background-color: #fff;
}
.cart-tabbar .service {
    height: 52px;
    text-align: center;
    border-top: 1px solid #c7c7c7;
    border-right: 1px solid #c7c7c7;
}
.cart-tabbar .kefu {
    position: relative;
    left: 2px;
    top: 10px;
    width: 30px;
    height: 30px;
    display: inline-block;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-image: url(~assets/images/detail/kefu.webp);
    text-align: center;
}
.cart-tabbar .buy-i {
    height: 52px;
    text-align: center;
    font-size: 14px;
    color: #333;
    line-height: 52px;
    border-top: 1px solid #c7c7c7;
}
.cart-tabbar .add-cart {
    height: 52px;
    background-color: #DD1A21;
    text-align: center;
    font-size: 14px;
    line-height: 52px;
    color: #fff;
    border: 1px solid #DD1A21;
}
</style>